package xuruiqi20240318.two;

/**
 * @author 徐瑞琪
 */
public class Rotundity extends Pattern {
    //属性
    private double r;

    //操作接口
    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }

    //计算面积
    public double countArea() {
        return this.r * this.r * Math.PI;
    }

    //构造方法
    public Rotundity() {
        super.maps();
    }

    public Rotundity(double r) {
        super.maps();
        this.r = r;
    }
}
